<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>购物车</title>
  <style>
    #shopping{
    width:160px;
    height: 45px;
    background-color:#eee;
    border: 5px solid gray;
    text-align: center;
    line-height: 45px;
    color: black;
    position: relative;
    cursor:pointer;
  }
  #shopping>i{
    position: absolute;
    width: 18px;
    height: 18PX;
    background-color: red;
    font-size: 14PX;
    color: white;
    border-radius: 50% 50% 50% 0;
    line-height: 18px;
    top:-8px
  }
  #shopping>span{
    position: absolute;
    right: 10PX;
  }
  </style>
  
</head>
<body>
  <div id="shopping" >
    我的购物车
    <span>&gt;</span>
    <i>1</i>
  </div>
</body>
</html>